<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<f:view xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:util="http://java.sun.com/jsf/composite/util">
	<ui:composition template="/views/layouts/main.xhtml">
	<ui:define name="content">
		<h:form id="formPrincipal">
			<div class="grid_18">
				<div class="grid_6">
					<util:home action="#{clientePortalBean.goHome}" />
					<p:splitButton value="#{i18n.btn_Novo}" action="#{clientePortalBean.goCreate}" 
						immediate="true" ajax="false" icon="ui-icon ui-icon-plus">
						<p:menuitem value="#{i18n.btn_Editar}" action="#{clientePortalBean.goEdit}" immediate="true" 
							icon="ui-icon ui-icon-pencil" ajax="false" rendered="#{clientePortalBean.clientePortalInstance.id ne null}" />
						<p:menuitem value="#{i18n.btn_NenhumaAcao}" icon="ui-icon ui-icon-cancel" />
					</p:splitButton>
					<p:commandButton type="button" value="#{i18n.btn_Buscar}" 
						icon="ui-icon ui-icon-search" onclick="dialogoBuscaClientePortal.show()" />
				</div>
				<util:titulo value="#{i18n.TituloClientePortal}" />
				<div class="grid_1">
					<util:help />
				</div>
			</div>
			
			<div class="grid_18">
				<p:messages />
			</div>
			
			<util:label value="#{i18n.ClientePortal_NomeCompleto}" />
			<div class="grid_18">
				<p:inputText value="#{clientePortalBean.clientePortalInstance.nomeCompleto}" styleClass="width_18"
					required="true" requiredMessage="#{i18n.ClientePortal_Required_NomeCompleto}" disabled="true"/>
			</div>
			
			<util:label grid="9" value="#{i18n.ClientePortal_NomeCurto}" />
			<util:label grid="9" value="#{i18n.ClientePortal_Situacao}" />
			<div class="grid_9">
				<p:inputText value="#{clientePortalBean.clientePortalInstance.nomeCurto}" styleClass="width_8"
					required="true" requiredMessage="#{i18n.ClientePortal_Required_NomeCurto}" disabled="true"/>
			</div>
			<div class="grid_9">
				<p:inputText value="#{clientePortalBean.clientePortalInstance.situacao}" 
					styleClass="width_9" disabled="true"/>
			</div>
			
			<util:label value="#{i18n.ClientePortal_UsuarioResponsavel}" />
			<div class="grid_18">
				<p:inputText value="#{clientePortalBean.clientePortalInstance.responsavel.nomeCompleto}" styleClass="width_18"
					required="true" requiredMessage="#{i18n.ClientePortal_Required_UsuarioResponsavel}" disabled="true"/>
			</div>
			
			<util:label grid="9" value="#{i18n.ClientePortal_DataCadastro}" />
			<util:label grid="9" value="#{i18n.ClientePortal_DataAprovacao}" />
			<div class="grid_9">
				<p:inputText value="#{clientePortalBean.clientePortalInstance.dataCadastro}" 
					styleClass="width_8" disabled="true">
					<f:convertDateTime pattern="dd 'de' MMM 'de' yyyy" />
				</p:inputText>
			</div>
			<div class="grid_9">
				<p:inputText value="#{clientePortalBean.clientePortalInstance.dataAprovacao}" 
					styleClass="width_9" disabled="true">
					<f:convertDateTime pattern="dd 'de' MMM 'de' yyyy" />
				</p:inputText>
			</div>
			
			<util:label value="#{i18n.ClientePortal_Observacoes}" />
			<div class="grid_18">
				<p:inputTextarea autoResize="false" styleClass="width_18" rows="5" disabled="true"
					value="#{clientePortalBean.clientePortalInstance.observacoes}" />
			</div>
		</h:form>
		<ui:include src="/views/clientePortal/_dialogoBuscaClientePortal.xhtml" />
	</ui:define>
	</ui:composition>
</f:view>